<script>
	import {
		appInit
	} from "@/common/appInit.js"
	import store from '@/store';

	/**
	 * 这里的代码是2空格缩进真的很难受,设置对这个文件不起作用
	 * 有知道怎么解决的朋友可以留言教一下,非常感谢
	 */
	// import school from '@/common/global'
	// import {
	// 	mapState,
	// 	mapMutations
	// } from 'vuex';
	export default {
		methods: {
			// ...mapMutations(['login'])
		},
		async onLaunch (e) {
			appInit()
			// //获取用户信息，判断是否还能登录
			await store.dispatch("eduUser/setUserInfo");
			// #ifdef MP-WEIXIN
			if(this.isLogin&&!this.eduOpenid){
				await store.dispatch("eduUser/setOpenid");
				console.log("onLaunch====》eduOpenid",this.eduOpenid)
			}
			// #endif
			
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
	}
</script>

<style lang='scss'>
	@import "@/components/color-ui/main.css";
    @import "@/components/color-ui/icon.css";
	@import "@/components/uview-ui/index.scss";
	@import "@/common/app.css";
</style>
